# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=guile-zstd
pkgver=0.1.1
pkgrel=0
pkgdesc="Guile bindings to the zstd compression library"
url="https://notabug.org/guile-zstd/guile-zstd"
arch="all"
license="GPL-3.0-or-later"
depends="guile zstd-dev"
makedepends="automake autoconf guile-dev"
options="!strip" # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907061
source="$pkgname-$pkgver.tar.gz::https://notabug.org/guile-zstd/guile-zstd/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname"

prepare() {
	default_prepare
	autoreconf -vfi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
23bd4b201a427eb02ae32bcd81d05adefcac3b4446dcb8a91d8ad2bed389d4ea92ffd81dfb6b3e7427b891fd25b7466ca53a97b1a943e390f13de977986fcad0  guile-zstd-0.1.1.tar.gz
"
